//
//  LoadingHub.h
//  OnionHome
//
//  Created by fengjie on 2019/9/13.
//  Copyright © 2019 FengJie. All rights reserved.
//

#import <Foundation/Foundation.h>
#define ShowHubMessage(message) [[LoadingHub shareHUD] showMessage:message]
#define ShowActivityHud(message) [[LoadingHub shareHUD] showMessageWithActivityIndicatorView:message]
#define HideHubView [[LoadingHub shareHUD] hideHUD]

NS_ASSUME_NONNULL_BEGIN

@interface LoadingHub : NSObject
#define kHUDDuration 1.5   ///< 默认的显示时间为2s

#define kHUDHideAnimated 1.0  //提示框消失时间
+ (LoadingHub *)shareHUD;
- (void)showMessage:(NSString *)message;
- (void)showMessage:(NSString *)message duration:(CGFloat)duration;
- (void)showMessageWithActivityIndicatorView:(NSString *)message;

- (void)hideHUD;

@end

NS_ASSUME_NONNULL_END
